FROM superbigfu/alpine-jdk:1.8.0_111

WORKDIR /project
COPY ./target/jfinal_docker_test-release/jfinal_docker_test /project

RUN mkdir -p /project/log && \
    ln -s /project/log /logs

EXPOSE 8080
VOLUME ["/logs"]

ENTRYPOINT ["sh","jfinal.sh","start"]
